Skip to content

Reduce hosted runner setup and record CI compilation timings - #640

Open
DWAA1660 wants to merge 2 commits into
AlienTechSoftware:mainfrom
DWAA1660:ci/runner-setup/397
Open

DWAA1660 wants to merge 2 commits into
AlienTechSoftware:mainfrom
DWAA1660:ci/runner-setup/397

Conversation

@DWAA1660

@DWAA1660 DWAA1660 commented Dec 1, 2026 •

Copy link
Copy Markdown
Collaborator

Part of #397. The coverage floor rollout is in #639.

  • Share Linux package selection across CI, tagged tests and packaging. Probe packages already on the runner, separate compile dependencies from GPU test-runtime packages, and bound apt retries and timeouts.
  • Reuse preinstalled Android SDK/NDK packages and restore the pinned cargo-ndk tool. Only main CI writes that cache.
  • Collect Cargo compilation timing artifacts for desktop CI and tagged Linux tests. Time browser patches, host tests, Trunk and wasm-opt in separate steps.
  • Upload already-compressed packages without recompressing them. Keep artifact paths, signatures and provenance checks.

Checks

  • cargo xtask docs, cargo xtask ci, cargo xtask pre-push, and git diff --cached --check passed.
  • bash -n .github/scripts/linux-deps.sh and bash -n android/ci-setup.sh passed. Verified package selection with --list for all four Linux profiles.
  • Before this change, 30 successful first-attempt code PRs reached the required CI verdict at a median of 18.5 minutes and P90 of 22.6 minutes. In one slower run, the standalone Linux build took 13 minutes and the test step took 17 minutes. Both still run while we collect the timings needed to identify equivalent work. The runner and release savings have not been measured yet.

Summary by CodeRabbit

  • Chores

    • Build and test workflows now provide timing reports for completed runs, helping contributors review how long different stages take.
    • Linux and Android build environments now avoid reinstalling packages that are already available, and Android builds can reuse a cached tool.
    • Release and website artifacts are uploaded without compression.
  • Documentation

    • Updated testing guidance explains where timing reports are available and how Linux build environments are configured.

@coderabbitai

coderabbitai Bot commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

Important

Review skipped

Review was skipped as selected files did not have any reviewable changes.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: b04be3e9-551a-4a5f-9b24-08aa7158e6d8
Commits

Reviewing files that changed from the base of the PR and between 3861748 and 3dc16bd.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review

No actionable comments were generated in the recent review.

Walkthrough

Changes: CI workflows

Layer / File(s) Summary
Linux dependency setup
.github/scripts/linux-deps.sh, .github/workflows/ci.yml, .github/workflows/nightly-release.yml, .github/workflows/packaging.yml, docs/testing.md
A shared script selects packages by lane, checks for missing packages, and installs them with bounded retries and timeouts. CI jobs use the script, and the documentation describes its package selection and reporting.
Cargo timing collection
.github/workflows/ci.yml, .github/workflows/nightly-release.yml, docs/testing.md
Build and test commands collect Cargo timings. CI workflows upload timing reports, and the documentation lists the lanes and website phases that provide timing information.
Android setup and caching
android/ci-setup.sh, .github/workflows/ci.yml, .github/workflows/packaging.yml
Android setup installs missing SDK packages and checks the pinned cargo-ndk version. CI workflows restore and conditionally save a cargo-ndk cache.
Website steps and artifact uploads
.github/workflows/website-pipeline.yml, .github/workflows/packaging.yml
The website workflow separates source patching, host tests, and WASM compilation. Packaging and website artifact uploads use compression level 0.

Possibly related issues

Suggested reviewers: alientechsw, mameen

Change: Other

Merge Risk: Minimal · previous review 38617

This change adjusts CI setup, caching, timing reports, and artifact compression. No concrete problem was found in the supplied material, so the merge risk is low. Runner savings have not yet been measured.

Security architecture risk: Minimal · up to 38617

The review found no material increase in risk from reusing the Android build tool. The configured workflow saves it only after successful setup on main, and the release signing and verification steps remain in place.

Security review details

Security Blast Radius

  • inferred — A matching cargo-ndk cache entry can affect Android CI and the Android APK build. In packaging, the executable runs in the build step that receives signing credentials when configured. The inspected restore does not feed desktop packages or website deployment.

Trust Boundaries and Controls

  • observed — The configured executable-cache writer runs after Android setup succeeds on a push to main and only when there was no exact hit. Packaging restores without a save step. The setup script executes the restored tool to check its version; the cache key identifies the expected inputs, not the contents of the executable.

Resilience and Maintainability Implications

  • inferred — A failed Android setup does not reach the cache-save step. A wrong-version executable that returns control can be replaced for the current run, but an exact hit is not rewritten. The SDK checks show that selected files exist, not that an interrupted SDK install completed.

Hardening Proposals

  • proposed — Keep executable caching for CI, but consider either installing the pinned tool afresh for signing jobs or verifying the cached binary against independently trusted provenance before its first execution.
Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: d289c3d2-1a5e-4507-be31-ffdb7361b403
Commits

Reviewing files that changed from the base of the PR and between 28217ad and 3861748.

Files selected for processing: 7

  • .github/scripts/linux-deps.sh
  • .github/workflows/ci.yml
  • .github/workflows/nightly-release.yml
  • .github/workflows/packaging.yml
  • .github/workflows/website-pipeline.yml
  • android/ci-setup.sh
  • docs/testing.md

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.

@DWAA1660
DWAA1660 enabled auto-merge December 1, 2026 22:56
@DWAA1660
DWAA1660 added this pull request to the merge queue Dec 1, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to a conflict with the base branch Dec 1, 2026
@DWAA1660
DWAA1660 enabled auto-merge December 1, 2026 23:36
@DWAA1660
DWAA1660 added this pull request to the merge queue Dec 2, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to a conflict with the base branch Dec 2, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant